<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/26 15:29
 */

namespace app\api\controller;

class Circle extends Base
{
	//检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => ''//except
        ],
    ];

   //美食圈
   public function circle_list()
   {
   	$circle_list =  (new \app\api\logic\Circle())->circle_list();
      return $this->ajaxReturn($circle_list);
   }

   //美食圈转发列表
   public function circle_forward_list()
   {
      $circle_forward_list =  (new \app\api\logic\Circle())->circle_forward_list();
      return $this->ajaxReturn($circle_forward_list);
   }

   //美食圈详情
   public function circle_info()
   {
      $circle_info =  (new \app\api\logic\Circle())->circle_info();
      return $this->ajaxReturn($circle_info);
   }

   //添加美食圈
   public function add_circle()
   {
   	$add_circle =  (new \app\api\logic\Circle())->add_circle();
      return $this->ajaxReturn($add_circle);
   }

   /**
   * 菜品识别
   */
   public function foodInfo(){
     return $this->ajaxReturn(
         (new \app\api\logic\Circle())->foodInfo()
     );
   }

   /**
   * 生成美食图
   */
   public function createImage(){
     return $this->ajaxReturn(
         (new \app\api\logic\Circle())->createImage()
     );
   }

   //转发详情
   public function forward_circle_info()
   {
      $forward_circle_info =  (new \app\api\logic\Circle())->forward_circle_info();
      return $this->ajaxReturn($forward_circle_info);
   }

   //转发美食圈
   public function forward_circle()
   {
      $forward_circle =  (new \app\api\logic\Circle())->forward_circle();
      return $this->ajaxReturn($forward_circle);
   }

   //美食圈点赞
   public function circle_like()
   {
      $circle_like =  (new \app\api\logic\Circle())->circle_like();
      return $this->ajaxReturn($circle_like);
   }

   //美食圈关注人
   public function circle_follow()
   {
      $circle_follow =  (new \app\api\logic\Circle())->circle_follow();
      return $this->ajaxReturn($circle_follow);
   }

   //美食圈取消关注人
   public function circle_cancel_follow()
   {
      $circle_cancel_follow =  (new \app\api\logic\Circle())->circle_cancel_follow();
      return $this->ajaxReturn($circle_cancel_follow);
   }

   //美食圈屏蔽
   public function circle_shield()
   {
      $circle_shield =  (new \app\api\logic\Circle())->circle_shield();
      return $this->ajaxReturn($circle_shield);
   }

   //评论
   public function comment()
   {
      $comment =  (new \app\api\logic\Circle())->comment();
      return $this->ajaxReturn($comment);
   }

   //评论详情
   public function comment_info()
   {
      $comment_info =  (new \app\api\logic\Circle())->comment_info();
      return $this->ajaxReturn($comment_info);
   }

   //评论列表
   public function comment_list()
   {
      $comment_list =  (new \app\api\logic\Circle())->comment_list();
      return $this->ajaxReturn($comment_list);
   }

   //评论点赞
   public function comment_like()
   {
      $comment_like =  (new \app\api\logic\Circle())->comment_like();
      return $this->ajaxReturn($comment_like);
   }

   //举报详情
   public function report_info()
   {
      $report_info =  (new \app\api\logic\Circle())->report_info();
      return $this->ajaxReturn($report_info);
   }

   //举报
   public function report()
   {
      $report =  (new \app\api\logic\Circle())->report();
      return $this->ajaxReturn($report);
   }

   //删除美食圈
   public function circle_del()
   {
      $circle_del = (new \app\api\logic\Circle())->circle_del();
      return $this->ajaxReturn($circle_del);
   }
}